// import {$get} from '@/utils/request.js'

// export const cakeGet = ()=>{
// 	return $get('/classes/CakeList')
// }

import http from '@/utils/http.js'
export const cakeGet = (id='62e08e78590c0f6b5b775efb',page=1)=>{
	let skip = (page-1)*8
	return http.get(`/classes/CakeList?where={"cateid":"${id}"}&limit=8&skip=${skip}`)
}

export const cateGet = ()=>{
	return http.get('/classes/CakeCate')
}


export const bannerGet = ()=>{
	return http.get('/classes/CakeBanner')
}